package shejimoshi.zhuangtaimoshi;
// 上下文
public class Context {
    private State state;

    public void setState(State state) {
        this.state = state;
    }

    public State getState() {
        return state;
    }

    public void request(String request) {
        state.handle(request);
    }
}
